<HTML>
<HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE id=dynCom type=text/css></STYLE>

<STYLE>v\:* {
	BEHAVIOR: url(#default#VML)
}
o\:* {
	BEHAVIOR: url(#default#VML)
}
w10\:* {
	BEHAVIOR: url(#default#VML)
}
.shape {
	BEHAVIOR: url(#default#VML)
}
</STYLE>

<STYLE>@font-face {
	font-family: Symbol;
}
@font-face {
	font-family: Times New Roman;
}
@font-face {
	font-family: Courier New;
}
@font-face {
	font-family: Wingdings;
}
@font-face {
	font-family: Calibri;
}
@font-face {
	font-family: Cambria;
}
@font-face {
	font-family: Tahoma;
}
@font-face {
	font-family: Arial;
}
v\:* {
	BEHAVIOR: url(#default#VML)
}
DEL {
	COLOR: red; TEXT-DECORATION: line-through
}
INS {
	COLOR: teal; TEXT-DECORATION: underline
}
.minorAsciiTheme {
	FONT-FAMILY: Calibri
}
.majorAsciiTheme {
	FONT-FAMILY: Cambria
}
.minorAnsiTheme {
	FONT-FAMILY: Calibri
}
.majorAnsiTheme {
	FONT-FAMILY: Cambria
}
.minorEATheme {
	FONT-FAMILY: 
}
.majorEATheme {
	FONT-FAMILY: 
}
.minorCSTheme {
	FONT-FAMILY: 
}
.majorCSTheme {
	FONT-FAMILY: 
}
.Normal-P {
	MARGIN: 0pt 0pt 10pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10pt
}
.Normal-H {
	
}
.Heading1-P {
	MARGIN: 0pt 0pt 10pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10pt
}
.Heading1-H {
	FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold
}
.Heading2-P {
	MARGIN: 0pt 0pt 10pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10pt
}
.Heading2-H {
	FONT-FAMILY: ; COLOR: #4f81bd; FONT-SIZE: 13pt; FONT-WEIGHT: bold
}
.DefaultParagraphFont-H {
	
}
.TableNormal-T {
	
}
.TableNormal-R {
	
}
.TableNormal-C {
	VERTICAL-ALIGN: top
}
.Title-P {
	LINE-HEIGHT: 24pt; MARGIN: 0pt 0pt 10pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10pt
}
.Title-H {
	FONT-FAMILY: ; LETTER-SPACING: 0.25pt; COLOR: #17365d; FONT-SIZE: 26pt
}
.TitleChar-H {
	FONT-FAMILY: ; LETTER-SPACING: 0.25pt; COLOR: #17365d; FONT-SIZE: 26pt
}
.Heading2Char-H {
	FONT-FAMILY: ; COLOR: #4f81bd; FONT-SIZE: 13pt; FONT-WEIGHT: bold
}
.Heading1Char-H {
	FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold
}
.TOCHeading-P {
	MARGIN: 0pt 0pt 10pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10pt
}
.TOCHeading-H {
	FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold
}
.TOC1-P {
	MARGIN: 0pt 0pt 10pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10pt
}
.TOC1-H {
	
}
.Hyperlink-H {
	COLOR: #0000ff
}
.BalloonText-P {
	LINE-HEIGHT: 24pt; MARGIN: 0pt 0pt 10pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10pt
}
.BalloonText-H {
	FONT-FAMILY: Tahoma; FONT-SIZE: 8pt
}
.BalloonTextChar-H {
	FONT-FAMILY: Tahoma; FONT-SIZE: 8pt
}
.ListParagraph-P {
	MARGIN: 0pt 0pt 10pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10pt
}
.ListParagraph-H {
	
}
.TOC2-P {
	MARGIN: 0pt 0pt 10pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10pt
}
.TOC2-H {
	
}
.Code-P {
	LINE-HEIGHT: 22pt; MARGIN: 0pt 0pt 10pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10pt
}
.Code-H {
	FONT-FAMILY: Courier New; FONT-SIZE: 8pt
}
.CodeSection-T {
	
}
.CodeSection-R {
	
}
.CodeSection-C {
	LINE-HEIGHT: 24pt; FONT-FAMILY: Arial; FONT-SIZE: 10pt; VERTICAL-ALIGN: top
}
.CodeChar-H {
	FONT-FAMILY: Courier New; FONT-SIZE: 8pt
}
.TableGrid-T {
	
}
.TableGrid-R {
	
}
.TableGrid-C {
	LINE-HEIGHT: 24pt; VERTICAL-ALIGN: top
}
.Header-P {
	LINE-HEIGHT: 24pt; MARGIN: 0pt 0pt 10pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10pt
}
.Header-H {
	
}
.HeaderChar-H {
	
}
.Footer-P {
	LINE-HEIGHT: 24pt; MARGIN: 0pt 0pt 10pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10pt
}
.Footer-H {
	
}
.FooterChar-H {
	
}
.CommentReference-H {
	FONT-SIZE: 8pt
}
.CommentText-P {
	LINE-HEIGHT: 24pt; MARGIN: 0pt 0pt 10pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10pt
}
.CommentText-H {
	FONT-SIZE: 10pt
}
.CommentTextChar-H {
	FONT-SIZE: 10pt
}
.CommentSubject-P {
	LINE-HEIGHT: 24pt; MARGIN: 0pt 0pt 10pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10pt
}
.CommentSubject-H {
	FONT-SIZE: 10pt; FONT-WEIGHT: bold
}
.CommentSubjectChar-H {
	FONT-SIZE: 10pt; FONT-WEIGHT: bold
}
.code0-P {
	TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; LINE-HEIGHT: 22pt; MARGIN: 0pt 0pt 10pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10pt
}
.code0-H {
	FONT-FAMILY: Courier New; FONT-SIZE: 8pt
}
.codeChar0-H {
	FONT-FAMILY: Courier New; FONT-SIZE: 8pt
}
.NoSpacing-P {
	LINE-HEIGHT: 24pt; MARGIN: 0pt 0pt 10pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10pt
}
.NoSpacing-H {
	
}
.NormalWeb-P {
	LINE-HEIGHT: 24pt; MARGIN: 0pt 0pt 10pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10pt
}
.NormalWeb-H {
	FONT-FAMILY: Times New Roman; FONT-SIZE: 12pt
}
.FollowedHyperlink-H {
	COLOR: #800080
}
</STYLE>

<META name=GENERATOR content="MSHTML 8.00.6001.18783"></HEAD>
<BODY>
<P 
style="PAGE-BREAK-AFTER: avoid; TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN-TOP: 24pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading1-P><SPAN class=Heading1-H><A name=_Toc220301510></A><SPAN 
class="majorAnsiTheme Heading1-H">Introduction</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr" 
class=Normal-P><SPAN class=Normal-H><SPAN 
class="minorAnsiTheme Normal-H">ADO</SPAN><SPAN class="minorAnsiTheme Normal-H"> 
</SPAN><SPAN class="minorAnsiTheme Normal-H">.NET Data Service </SPAN><SPAN 
class="minorAnsiTheme Normal-H">PHP library </SPAN><SPAN 
class="minorAnsiTheme Normal-H">is designed to make </SPAN><SPAN 
class="minorAnsiTheme Normal-H">it </SPAN><SPAN 
class="minorAnsiTheme Normal-H">easier for PHP application</SPAN><SPAN 
class="minorAnsiTheme Normal-H">s</SPAN><SPAN class="minorAnsiTheme Normal-H"> 
to consume </SPAN><SPAN class="minorAnsiTheme Normal-H">data service</SPAN><SPAN 
class="minorAnsiTheme Normal-H">s</SPAN><SPAN class="minorAnsiTheme Normal-H"> 
created using </SPAN><SPAN class="minorAnsiTheme Normal-H">the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">ADO .N</SPAN><SPAN 
class="minorAnsiTheme Normal-H">ET</SPAN><SPAN class="minorAnsiTheme Normal-H"> 
Data Services framework. The goal is to provide the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">same </SPAN><SPAN 
class="minorAnsiTheme Normal-H">functionality </SPAN><SPAN 
class="minorAnsiTheme Normal-H">that is </SPAN><SPAN 
class="minorAnsiTheme Normal-H">available in the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">librar</SPAN><SPAN 
class="minorAnsiTheme Normal-H">ies</SPAN><SPAN class="minorAnsiTheme Normal-H"> 
</SPAN><SPAN class="minorAnsiTheme Normal-H">available to .NET developers. The 
library includes support for </SPAN><SPAN 
class="minorAnsiTheme Normal-H">accessing and</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> </SPAN><SPAN 
class="minorAnsiTheme Normal-H">modifying the</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> data </SPAN><SPAN 
class="minorAnsiTheme Normal-H">exposed by the ADO</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> </SPAN><SPAN 
class="minorAnsiTheme Normal-H">.NET Data Service</SPAN><SPAN 
class="minorAnsiTheme Normal-H">. </SPAN></SPAN></P>
<P 
style="PAGE-BREAK-AFTER: avoid; TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN-TOP: 24pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading1-P><SPAN class=Heading1-H><A name=_Toc220301511></A><SPAN 
class="majorAnsiTheme Heading1-H">Requirement</SPAN><SPAN 
class="majorAnsiTheme Heading1-H">s</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr" 
class=Normal-P><SPAN class=Normal-H><SPAN 
class="minorAnsiTheme Normal-H">T</SPAN><SPAN class="minorAnsiTheme Normal-H">he 
PHP client library </SPAN><SPAN class="minorAnsiTheme Normal-H">requires the 
foll</SPAN><SPAN class="minorAnsiTheme Normal-H">owing framework</SPAN><SPAN 
class="minorAnsiTheme Normal-H">s</SPAN><SPAN class="minorAnsiTheme Normal-H"> 
to be installed and </SPAN><SPAN class="minorAnsiTheme Normal-H">en</SPAN><SPAN 
class="minorAnsiTheme Normal-H">a</SPAN><SPAN 
class="minorAnsiTheme Normal-H">bled:</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> </SPAN></SPAN></P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN style="FONT-FAMILY: " 
class=-H>•&nbsp;</SPAN><A style="TEXT-DECORATION: none" 
href="http://us2.php.net/xsl"><SPAN style="TEXT-DECORATION: underline" 
class="minorAnsiTheme Hyperlink-H">PHP </SPAN><SPAN 
style="TEXT-DECORATION: underline" class="minorAnsiTheme Hyperlink-H">XSL 
</SPAN><SPAN style="TEXT-DECORATION: underline" 
class="minorAnsiTheme Hyperlink-H">Extension</SPAN></A><SPAN 
class="minorAnsiTheme ListParagraph-H"> </SPAN></SPAN></P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN style="FONT-FAMILY: " 
class=-H>•&nbsp;</SPAN><A style="TEXT-DECORATION: none" 
href="http://us2.php.net/curl"><SPAN style="TEXT-DECORATION: underline" 
class="minorAnsiTheme Hyperlink-H">PHP </SPAN><SPAN 
style="TEXT-DECORATION: underline" 
class="minorAnsiTheme Hyperlink-H">C</SPAN><SPAN 
style="TEXT-DECORATION: underline" class="minorAnsiTheme Hyperlink-H">URL 
Extension</SPAN></A></SPAN> </P>
<P 
style="PAGE-BREAK-AFTER: avoid; MARGIN-TOP: 24pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading1-P><SPAN class=Heading1-H><A name=_Toc220301512></A><SPAN 
class="majorAnsiTheme Heading1-H">Package Content</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">\Doc: </SPAN></SPAN></P>
<P 
style="TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN class="minorAnsiTheme ListParagraph-H">PHP Toolkit 
User guide</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">\Samples\</SPAN><SPAN 
class="minorAnsiTheme Normal-H">ADODotNETDataServices</SPAN><SPAN 
class="minorAnsiTheme Normal-H">: </SPAN></SPAN></P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">A </SPAN><SPAN 
class="minorAnsiTheme Normal-H">Visual Studio 2008 project for </SPAN><SPAN 
class="minorAnsiTheme Normal-H">two </SPAN><SPAN 
class="minorAnsiTheme Normal-H">sample ADO</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> .NET</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> Data Services </SPAN><SPAN 
class="minorAnsiTheme Normal-H">used by the sample applications included in the 
PHP Toolkit. The Visual Studio project creates two services:</SPAN></SPAN> </P>
<P 
style="TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">NorthWindDataService: This service is 
used by the SimpleApplications and can be used to test the </SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">ADODotNETDataServices</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">Editor</SPAN></SPAN> </P>
<P 
style="TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">GameStoreDataService: service used by the 
Game Store sample Application.</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN 
class="minorAnsiTheme Normal-H">\Sample\PHPApplications:</SPAN></SPAN> </P>
<P 
style="TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">ADODotNETDataServices</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">Editor: a PHP applicati</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">on that can be used to connect, browse, 
</SPAN><SPAN class="minorAnsiTheme ListParagraph-H">read and write data exposed 
</SPAN><SPAN class="minorAnsiTheme ListParagraph-H">by </SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">an ADO</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H"> </SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">.N</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">ET</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H"> Data Service.</SPAN></SPAN> </P>
<P 
style="TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">SimpleApplications: a list of simple 
HelloWorld</SPAN><SPAN class="minorAnsiTheme ListParagraph-H">-type</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H"> applications that show how 
ADO</SPAN><SPAN class="minorAnsiTheme ListParagraph-H"> .NET</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H"> Data Services queries can be used to 
retrieve data from a server.</SPAN></SPAN> </P>
<P 
style="TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">VideoGameStoreApplication: a sample 
application that shows how ADO</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H"> </SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">.NET Data Services can be</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H"> used</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H"> </SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">to access a remote data 
source</SPAN><SPAN class="minorAnsiTheme ListParagraph-H">.</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">\</SPAN><SPAN 
class="minorAnsiTheme Normal-H">framework</SPAN><SPAN 
class="minorAnsiTheme Normal-H">:</SPAN></SPAN> </P>
<P 
style="TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN class="minorAnsiTheme ListParagraph-H">Contains the 
source code for the tools used to generate the proxy class</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H"> and to communicate with data 
service</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H></SPAN> </P>
<P 
style="PAGE-BREAK-AFTER: avoid; MARGIN-TOP: 24pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading1-P><SPAN class=Heading1-H><SPAN 
class="majorAnsiTheme Heading1-H">Installation</SPAN><SPAN 
class="majorAnsiTheme Heading1-H"> and Configuration</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">The assu</SPAN><SPAN 
class="minorAnsiTheme Normal-H">mption is that PHP is already installed and 
configured on the machine where the ADO</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> </SPAN><SPAN 
class="minorAnsiTheme Normal-H">.NET Data Services toolkit is 
installed.</SPAN><SPAN class="minorAnsiTheme Normal-H"> The toolkit does not 
have any dependency on the host OS so it can run on Windows, Linux or Mac OSX 
machines.</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">1. </SPAN><SPAN 
class="minorAnsiTheme Normal-H">Create a folder </SPAN><SPAN 
class="minorAnsiTheme Normal-H">named</SPAN><SPAN 
class="minorAnsiTheme Normal-H">, for instance, </SPAN><SPAN 
class="minorAnsiTheme Normal-H">'adodotnetservicesphp' </SPAN><SPAN 
class="minorAnsiTheme Normal-H">e.g.</SPAN><SPAN 
class="minorAnsiTheme Normal-H">: </SPAN><SPAN 
class="minorAnsiTheme Normal-H">C:\PHPLib\adodotnetservicesphp</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> </SPAN></SPAN></P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">2. </SPAN><SPAN 
class="minorAnsiTheme Normal-H">Copy </SPAN><SPAN 
class="minorAnsiTheme Normal-H">the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">following </SPAN><SPAN 
class="minorAnsiTheme Normal-H">files </SPAN><SPAN 
class="minorAnsiTheme Normal-H">and</SPAN><SPAN class="minorAnsiTheme Normal-H"> 
folders </SPAN><SPAN class="minorAnsiTheme Normal-H">to </SPAN><SPAN 
class="minorAnsiTheme Normal-H">the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">folder created above. </SPAN></SPAN></P>
<P 
style="LINE-HEIGHT: 24pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Normal-P><SPAN class=Normal-H></SPAN> </P>
<P 
style="LINE-HEIGHT: 24pt; TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-FAMILY: Courier New; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN style="FONT-FAMILY: Courier New" 
class="minorAnsiTheme -H">ADODotNETDataServices2PHPProxy.xsl</SPAN></SPAN> </P>
<P 
style="LINE-HEIGHT: 24pt; TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-FAMILY: Courier New; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN style="FONT-FAMILY: Courier New" 
class="minorAnsiTheme -H">ADODotNETDataServicesEditor.php</SPAN></SPAN> </P>
<P 
style="LINE-HEIGHT: 24pt; TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-FAMILY: Courier New; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN style="FONT-FAMILY: Courier New" 
class="minorAnsiTheme -H">ADODotNETDataServicesEntity.php</SPAN></SPAN> </P>
<P 
style="LINE-HEIGHT: 24pt; TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-FAMILY: Courier New; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN style="FONT-FAMILY: Courier New" 
class="minorAnsiTheme -H">ADODotNETDataServicesException.php</SPAN></SPAN> </P>
<P 
style="LINE-HEIGHT: 24pt; TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H>
    <SPAN 
style="FONT-STYLE: normal; FONT-FAMILY: Courier New; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;HttpProxy.php</SPAN></SPAN></P>
<P 
style="LINE-HEIGHT: 24pt; TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-FAMILY: Courier New; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN style="FONT-FAMILY: Courier New" 
class="minorAnsiTheme -H">PHPDataSvcUtil.php</SPAN></SPAN> </P>
<P 
style="TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN class="minorAnsiTheme ListParagraph-H">Common 
(contains Dictionary.php, Guid.php and Utility.php)Context (contains 
EntityStates.php, ObjectContext.php, QueryProcessor.php, RelatedEnd.php, 
ResourceBox.php and SaveResult.php)</SPAN></SPAN> </P>
<P 
style="TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN class="minorAnsiTheme ListParagraph-H">Credential 
(contains Credentail.php)</SPAN></SPAN> </P>
<P 
style="TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN class="minorAnsiTheme ListParagraph-H">Interfaces 
(contains Entity.php and Object.php)</SPAN></SPAN> </P>
<P 
style="TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN class="minorAnsiTheme ListParagraph-H">Parser 
(contains Parser.php, AtomParser.php and JSONParser.php)</SPAN></SPAN> </P>
<P 
style="TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN class="minorAnsiTheme ListParagraph-H">Resource 
(contains Messages.php)</SPAN></SPAN> </P>
<P 
style="TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN class="minorAnsiTheme ListParagraph-H">WebUtil 
(contains HttpBatchRequest.php, HttpBatchResponse.php, HttpRequest.php , 
HttpResponse.php and </SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">Microsoft_Http_Response.php</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">)</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">3. </SPAN><SPAN 
class="minorAnsiTheme Normal-H">Add </SPAN><SPAN 
class="minorAnsiTheme Normal-H">the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">path </SPAN><SPAN 
class="minorAnsiTheme Normal-H">to the folder created in step 1 to </SPAN><SPAN 
class="minorAnsiTheme Normal-H">the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">'include_path' directive in </SPAN><SPAN 
class="minorAnsiTheme Normal-H">the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">php.ini</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> <BR clear=all></SPAN><SPAN 
class="minorAnsiTheme Normal-H"><SPAN 
style="MARGIN-LEFT: 26pt"></SPAN></SPAN><SPAN 
class="minorAnsiTheme Normal-H">e.g.</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> <BR clear=all></SPAN><SPAN 
class="minorAnsiTheme Normal-H"><SPAN 
style="MARGIN-LEFT: 26pt"></SPAN></SPAN><SPAN 
class="minorAnsiTheme Normal-H">include_path = 
".;C:\PHPLib\adodotnetservicesphp"&nbsp; </SPAN></SPAN></P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">4. Create a variable called 
</SPAN><SPAN class="minorAnsiTheme Normal-H">'adodotnetservicesphp_path' in 
</SPAN><SPAN class="minorAnsiTheme Normal-H">the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">php.ini file and set it to the path where the 
PHP Toolkit was installed (step 1).</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=Normal-P><SPAN class=Normal-H><SPAN 
class="minorAnsiTheme Normal-H">O</SPAN><SPAN 
class="minorAnsiTheme Normal-H">pen php.ini and search for 'Paths and 
Directories' section. Just below </SPAN><SPAN 
class="minorAnsiTheme Normal-H">the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">definition of 'include_path' directi</SPAN><SPAN 
class="minorAnsiTheme Normal-H">ve, add the following two lines:</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> <BR clear=all>;PHP Toolkit for ADO .NET Data 
Services Library Path</SPAN><SPAN class="minorAnsiTheme Normal-H"> <BR 
clear=all>adodotnetservicesphp_path = 
"C:\PHPLib\adodotnetservicesphp"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN></P>

<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">5. </SPAN><SPAN 
class="minorAnsiTheme Normal-H">On Linux platform, make sure you have the php-xml module installed. This can be installed using yum as follows,
</SPAN></SPAN></P>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=Normal-P><SPAN class=Normal-H><SPAN 
class="minorAnsiTheme Normal-H">yum install php-xml</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> </SPAN><SPAN 
class="minorAnsiTheme Normal-H">front</SPAN><SPAN 
class="minorAnsiTheme Normal-H">.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></SPAN> 
</P>

<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">6. </SPAN><SPAN 
class="minorAnsiTheme Normal-H">Enable php_xsl.dll in php.ini. 
</SPAN></SPAN></P>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=Normal-P><SPAN class=Normal-H><SPAN 
class="minorAnsiTheme Normal-H">S</SPAN><SPAN 
class="minorAnsiTheme Normal-H">earch for 'extension=php_xsl.dll' in the php.ini 
file and remove the semicolon (;) in</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> </SPAN><SPAN 
class="minorAnsiTheme Normal-H">front</SPAN><SPAN 
class="minorAnsiTheme Normal-H">.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></SPAN> 
</P>

<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">7. Enable php_curl.dll in 
php.ini.</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=Normal-P><SPAN class=Normal-H><SPAN 
class="minorAnsiTheme Normal-H">S</SPAN><SPAN 
class="minorAnsiTheme Normal-H">earch for 'extension=php_</SPAN><SPAN 
class="minorAnsiTheme Normal-H">curl</SPAN><SPAN 
class="minorAnsiTheme Normal-H">.dll' in the php.ini file and remove the 
semicolon (;) in</SPAN><SPAN class="minorAnsiTheme Normal-H"> </SPAN><SPAN 
class="minorAnsiTheme Normal-H">front</SPAN><SPAN 
class="minorAnsiTheme Normal-H">.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></SPAN> 
</P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">8</SPAN><SPAN 
class="minorAnsiTheme Normal-H">. Optional: The content of the PHPApplications 
directory can be deployed on a web server to provide access to the sample 
applications from a single web page. The PHPApplications directory contains some 
php files, template and CSS files that are used to build the Sample Web Page. 
All Samples must be configured before they can be </SPAN><SPAN 
class="minorAnsiTheme Normal-H">run</SPAN><SPAN class="minorAnsiTheme Normal-H"> 
from the Web Page. </SPAN><SPAN class="minorAnsiTheme Normal-H">For 
configuration information r</SPAN><SPAN class="minorAnsiTheme Normal-H">efer to 
the readme files in the ADODotNETDataService</SPAN><SPAN 
class="minorAnsiTheme Normal-H">sEditor, </SPAN><SPAN 
class="minorAnsiTheme Normal-H">SimpleApplications and GameStoreApplication 
directories. </SPAN></SPAN></P>
<P 
style="PAGE-BREAK-AFTER: avoid; TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN-TOP: 24pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading1-P><SPAN class=Heading1-H><SPAN 
class="majorAnsiTheme Heading1-H">Creating Proxy Class</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr" 
class=Normal-P><SPAN class=Normal-H><SPAN class="minorAnsiTheme Normal-H">The 
first step is to create a proxy class that is used to connect to the 
ADO</SPAN><SPAN class="minorAnsiTheme Normal-H"> </SPAN><SPAN 
class="minorAnsiTheme Normal-H">.NET Data service.</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr" 
class=Normal-P><SPAN class=Normal-H><SPAN class="minorAnsiTheme Normal-H">The 
</SPAN><SPAN class="minorAnsiTheme Normal-H">PHP client library provides a 
</SPAN><SPAN class="minorAnsiTheme Normal-H">PHPDataSvcUtil.php </SPAN><SPAN 
class="minorAnsiTheme Normal-H">file which creates </SPAN><SPAN 
class="minorAnsiTheme Normal-H">the proxy</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> class. The command </SPAN><SPAN 
class="minorAnsiTheme Normal-H">to create </SPAN><SPAN 
class="minorAnsiTheme Normal-H">the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">class is</SPAN><SPAN 
class="minorAnsiTheme Normal-H">:</SPAN></SPAN> </P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 473.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">php</SPAN><SPAN 
      class="minorAnsiTheme code0-H"> </SPAN><SPAN 
      class="minorAnsiTheme code0-H">&lt;path of Client Libary&gt;</SPAN><SPAN 
      class="minorAnsiTheme code0-H">PHPDataSvcUtil.php</SPAN><SPAN 
      class="minorAnsiTheme code0-H"> /Uri:&lt;data service Uri&gt; </SPAN><SPAN 
      class="minorAnsiTheme code0-H">[/metadata:&lt;path to metadata 
      file&gt;</SPAN><SPAN class="minorAnsiTheme code0-H"> </SPAN><SPAN 
      class="minorAnsiTheme code0-H">[</SPAN><SPAN 
      class="minorAnsiTheme code0-H">/out:&lt;output file path&gt;</SPAN><SPAN 
      class="minorAnsiTheme code0-H">]</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H></SPAN> </P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 473.4pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Normal-P><SPAN class=Normal-H></SPAN> </P><br/>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">&lt;</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">Path</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H"> of Client Library&gt; is the path where 
the clie</SPAN><SPAN class="minorAnsiTheme ListParagraph-H">nt library files are 
installed (S</SPAN><SPAN class="minorAnsiTheme ListParagraph-H">ee the 
installation instruction</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">s)</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">.</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Normal-P><SPAN class=Normal-H><SPAN 
class="minorAnsiTheme Normal-H"></SPAN></SPAN></P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt" 
class=Normal-P><SPAN class=Normal-H><SPAN class="minorAnsiTheme Normal-H">If 
file name is not specified </SPAN><SPAN class="minorAnsiTheme Normal-H">with the 
/Out param</SPAN><SPAN class="minorAnsiTheme Normal-H">eters</SPAN><SPAN 
class="minorAnsiTheme Normal-H">, </SPAN><SPAN 
class="minorAnsiTheme Normal-H">the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">Entity Container name </SPAN><SPAN 
class="minorAnsiTheme Normal-H">(defined in the ADO</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> </SPAN><SPAN 
class="minorAnsiTheme Normal-H">.NET Data Service) </SPAN><SPAN 
class="minorAnsiTheme Normal-H">is used </SPAN><SPAN 
class="minorAnsiTheme Normal-H">as</SPAN><SPAN class="minorAnsiTheme Normal-H"> 
filename.</SPAN><SPAN class="minorAnsiTheme Normal-H"> If the output path 
</SPAN><SPAN class="minorAnsiTheme Normal-H">is </SPAN><SPAN 
class="minorAnsiTheme Normal-H">not specified then the proxy class will be 
generated </SPAN><SPAN class="minorAnsiTheme Normal-H">by </SPAN><SPAN 
class="minorAnsiTheme Normal-H">by PHPDataSvcUtil </SPAN><SPAN 
class="minorAnsiTheme Normal-H">in the current directory.</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt" 
class=Normal-P><SPAN class=Normal-H><SPAN class="minorAnsiTheme Normal-H">The 
metadata parameter can be used to specify a medata file saved on the local machine. 
The PHPDataSvcUtil will use the saved file and won’t connect to ADO.NET Data 
Service. Uri and metadata parameters are mutually exclusive.</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Normal-P><SPAN class=Normal-H></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Normal-P><SPAN class=Normal-H><SPAN style="FONT-WEIGHT: bold" 
class=-H></SPAN><SPAN class="minorAnsiTheme Normal-H">Note: </SPAN><SPAN 
class="minorAnsiTheme Normal-H">In order to use this utility, the </SPAN><SPAN 
style="FONT-FAMILY: " class="minorAnsiTheme -H">configuration option 
'</SPAN><SPAN class="minorAnsiTheme Normal-H"> </SPAN><SPAN 
class="minorAnsiTheme Normal-H">adodotnetservicesphp_path </SPAN><SPAN 
style="FONT-FAMILY: " class="minorAnsiTheme -H">' </SPAN><SPAN 
style="FONT-FAMILY: " class="minorAnsiTheme -H">should be set in php.ini 
configuration file. </SPAN><SPAN style="FONT-FAMILY: " 
class="minorAnsiTheme -H">(R</SPAN><SPAN style="FONT-FAMILY: " 
class="minorAnsiTheme -H">efer </SPAN><SPAN style="FONT-FAMILY: " 
class="minorAnsiTheme -H">to the </SPAN><SPAN style="FONT-FAMILY: " 
class="minorAnsiTheme -H">Installation instructions</SPAN><SPAN 
style="FONT-FAMILY: " class="minorAnsiTheme -H"> for more details)</SPAN><SPAN 
style="FONT-FAMILY: " class="minorAnsiTheme -H">.</SPAN></SPAN> </P>
<P 
style="PAGE-BREAK-AFTER: avoid; TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN-TOP: 24pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading1-P><SPAN class=Heading1-H><A name=_Toc220301513></A><SPAN 
class="majorAnsiTheme Heading1-H">Using Proxy Class</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">After the proxy class for 
the ADO</SPAN><SPAN class="minorAnsiTheme Normal-H"> </SPAN><SPAN 
class="minorAnsiTheme Normal-H">.NET Data Service has been created, it can be 
used in the application to access the data on the server.</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> The proxy class generated by the PHPDataSvcUtil 
needs to be included first:</SPAN></SPAN> </P>
<TABLE 
style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; BORDER-COLLAPSE: separate; MARGIN-LEFT: 0pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid" 
class=TableGrid-T cellSpacing=1>
  <TBODY>
  <TR style="HEIGHT: 0px" class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: windowtext 0pt; BORDER-LEFT: windowtext 0pt; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 478.8pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0pt; BORDER-RIGHT: windowtext 0pt; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">require_once '</SPAN><SPAN 
      class="minorAnsiTheme code0-H">MyProxyClass.php';</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Normal-P><SPAN class=Normal-H></SPAN> </P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 482.8pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr" 
class=Normal-P><SPAN class=Normal-H><SPAN class="minorAnsiTheme Normal-H">The 
MyProxyClass.php file</SPAN><SPAN class="minorAnsiTheme Normal-H">, 
in</SPAN><SPAN class="minorAnsiTheme Normal-H"> this case</SPAN><SPAN 
class="minorAnsiTheme Normal-H">,</SPAN><SPAN class="minorAnsiTheme Normal-H"> 
contains the definition of a class that </SPAN><SPAN 
class="minorAnsiTheme Normal-H">can be use </SPAN><SPAN 
class="minorAnsiTheme Normal-H">to execute </SPAN><SPAN 
class="minorAnsiTheme Normal-H">various queries using </SPAN><SPAN 
class="minorAnsiTheme Normal-H">the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">ExecuteQuery method.</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr" 
class=Normal-P><SPAN class=Normal-H><SPAN class="minorAnsiTheme Normal-H">The 
following code snippet </SPAN><SPAN class="minorAnsiTheme Normal-H">shows an 
example on how to use the proxy class to access </SPAN><SPAN 
class="minorAnsiTheme Normal-H">a </SPAN><SPAN 
class="minorAnsiTheme Normal-H">c</SPAN><SPAN 
class="minorAnsiTheme Normal-H">ustomer </SPAN><SPAN 
class="minorAnsiTheme Normal-H">record for a service that exposes the NorthWind 
database.</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">The goal is to retrieve the 
record for the Costumer with CustomerID=’ALFKI’</SPAN></SPAN> </P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 473.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">$proxy 
      = new NorthwindEntities();</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$customers = 
      $proxy-&gt;ExecuteQuery(“Customers(‘ALFKI’)”);</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">echo 
      ($customers-&gt;CompanyName);</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 473.4pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">This code sample uses the 
proxy class to connect to the ADO</SPAN><SPAN class="minorAnsiTheme Normal-H"> 
</SPAN><SPAN class="minorAnsiTheme Normal-H">.NET Data Service, retrieves a 
customer and print</SPAN><SPAN class="minorAnsiTheme Normal-H">s</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> the CompanyName field using the customers class 
defined in the myproxyclass.php file.</SPAN></SPAN> </P>
<P 
style="PAGE-BREAK-AFTER: avoid; TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN-TOP: 24pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading1-P><SPAN class=Heading1-H><A name=_Toc220301514></A><SPAN 
class="majorAnsiTheme Heading1-H">Data Service Queries</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr" 
class=Normal-P><SPAN class=Normal-H><SPAN class="minorAnsiTheme Normal-H">The 
data service queries are conditions that determine what data</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> is retrieved from the ADO</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> </SPAN><SPAN 
class="minorAnsiTheme Normal-H">.NET Data Service</SPAN><SPAN 
class="minorAnsiTheme Normal-H">. </SPAN><SPAN 
class="minorAnsiTheme Normal-H">There are five Data Service Queries supported by 
the PHP client library:</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">Expand</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">Filter</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">OrderBy</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">Skip</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; TEXT-INDENT: -18pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-LEFT: 36pt" 
class=ListParagraph-P><SPAN class=ListParagraph-H><SPAN 
style="FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none" 
class=-H>•&nbsp;</SPAN><SPAN 
class="minorAnsiTheme ListParagraph-H">Top</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr" 
class=Normal-P><SPAN class=Normal-H><SPAN 
class="minorAnsiTheme Normal-H">Complete documentation on the Data Service 
Queries can be found on the </SPAN><A style="TEXT-DECORATION: none" 
href="http://msdn.microsoft.com/en-us/library/cc668791.aspx"><SPAN 
style="TEXT-DECORATION: underline" 
class="minorAnsiTheme Hyperlink-H">MSDN</SPAN></A><SPAN 
class="minorAnsiTheme Normal-H"> site</SPAN><SPAN 
class="minorAnsiTheme Normal-H">.</SPAN></SPAN> </P>
<P 
style="PAGE-BREAK-AFTER: avoid; MARGIN-TOP: 10pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading2-P><SPAN class=Heading2-H><A name=_Toc220301515></A><SPAN 
class="majorAnsiTheme Heading2-H">Expand Query</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">The ‘expand’ option allows 
you to embed one or more sets of related entities in the results. For example, 
if you want to display a customer and its sales orders, you could execute two 
requests, one for /Customers(‘ALFKI’) and one for /Customers(‘ALFKI’)/Orders. 
The ‘expand’ option on the other hand allows you to return the related entities 
in-line with the response of the parent in a single HTTP request.</SPAN></SPAN> 
</P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">You may specify multiple 
navigation properties to expand by separating them with commas, and you may 
traverse more than one relationship by using a dot to jump to the next 
navigation property.</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr" 
class=Normal-P><SPAN class=Normal-H><SPAN 
class="minorAnsiTheme Normal-H">Examples:</SPAN></SPAN> </P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 473.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P 
      style="TEXT-ALIGN: left; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN class="minorAnsiTheme code0-H">/* 
      </SPAN><SPAN class="minorAnsiTheme code0-H">a customer with related sales 
      orders</SPAN><SPAN class="minorAnsiTheme code0-H"> */</SPAN><SPAN 
      class="minorAnsiTheme code0-H"> <BR clear=all></SPAN><SPAN 
      class="minorAnsiTheme code0-H">$customers = 
      $proxy-&gt;ExecuteQuery(“</SPAN><SPAN 
      class="minorAnsiTheme code0-H">Customers(‘ALFKI’)?</SPAN><SPAN 
      class="minorAnsiTheme code0-H">\</SPAN><SPAN 
      class="minorAnsiTheme code0-H">$expand=Orders</SPAN><SPAN 
      class="minorAnsiTheme code0-H">");</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">echo 
      count($customers-&gt;Orders);</SPAN></SPAN> </P>
      <P 
      style="TEXT-ALIGN: left; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H></SPAN> </P>
      <P 
      style="TEXT-ALIGN: left; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN class="minorAnsiTheme code0-H">/* 
      </SPAN><SPAN class="minorAnsiTheme code0-H">a customer with related sales 
      orders and employee information related to those orders</SPAN><SPAN 
      class="minorAnsiTheme code0-H"> */</SPAN><SPAN 
      class="minorAnsiTheme code0-H"> <BR clear=all></SPAN><SPAN 
      class="minorAnsiTheme code0-H">$customers = 
      $proxy-&gt;ExecuteQuery(“</SPAN><SPAN 
      class="minorAnsiTheme code0-H">Customers(‘ALFKI’)?</SPAN><SPAN 
      class="minorAnsiTheme code0-H">\</SPAN><SPAN 
      class="minorAnsiTheme code0-H">$expand=Orders/Employees</SPAN><SPAN 
      class="minorAnsiTheme code0-H">");</SPAN><SPAN 
      class="minorAnsiTheme code0-H"> </SPAN></SPAN></P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">echo 
      count($customers-&gt;</SPAN><SPAN 
      class="minorAnsiTheme Code-H">Orders</SPAN><SPAN 
      class="minorAnsiTheme Code-H">(10248)</SPAN><SPAN 
      class="minorAnsiTheme Code-H">-&gt;</SPAN><SPAN 
      class="minorAnsiTheme Code-H">Employees);</SPAN></SPAN> </P>
      <P 
      style="TEXT-ALIGN: left; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H></SPAN> </P>
      <P 
      style="TEXT-ALIGN: left; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN class="minorAnsiTheme code0-H">/* 
      </SPAN><SPAN class="minorAnsiTheme code0-H">Orders with related employees 
      information and related shipper information</SPAN><SPAN 
      class="minorAnsiTheme code0-H"> */</SPAN><SPAN 
      class="minorAnsiTheme code0-H"> <BR clear=all></SPAN><SPAN 
      class="minorAnsiTheme code0-H">$customers = 
      $proxy-&gt;ExecuteQuery(“</SPAN><SPAN 
      class="minorAnsiTheme code0-H">Orders(10248)?</SPAN><SPAN 
      class="minorAnsiTheme code0-H">\</SPAN><SPAN 
      class="minorAnsiTheme code0-H">$expand=Employees,Shippers</SPAN><SPAN 
      class="minorAnsiTheme code0-H">");</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">echo 
      count($customers-&gt;</SPAN><SPAN 
      class="minorAnsiTheme Code-H">Employees</SPAN><SPAN 
      class="minorAnsiTheme Code-H">(5)</SPAN><SPAN 
      class="minorAnsiTheme Code-H">-&gt;</SPAN><SPAN 
      class="minorAnsiTheme Code-H">Shippers);</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">echo 
      count($customers-&gt;Employees);</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 473.4pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Normal-P><SPAN class=Normal-H></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Normal-P><SPAN class=Normal-H><SPAN class="minorAnsiTheme Normal-H">Note: 
</SPAN><SPAN class="minorAnsiTheme Normal-H">“</SPAN><SPAN 
class="minorAnsiTheme Normal-H">$</SPAN><SPAN 
class="minorAnsiTheme Normal-H">”</SPAN><SPAN class="minorAnsiTheme Normal-H"> 
is</SPAN><SPAN class="minorAnsiTheme Normal-H"> a</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> special key in PHP</SPAN><SPAN 
class="minorAnsiTheme Normal-H">,</SPAN><SPAN class="minorAnsiTheme Normal-H"> 
therefore “\” is added</SPAN><SPAN class="minorAnsiTheme Normal-H"> before 
“$”</SPAN><SPAN class="minorAnsiTheme Normal-H"> in the query.</SPAN></SPAN> 
</P>
<P 
style="PAGE-BREAK-AFTER: avoid; MARGIN-TOP: 10pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading2-P><SPAN class=Heading2-H><A name=_Toc220301516></A><SPAN 
class="majorAnsiTheme Heading2-H">Filter Query</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">Restrict the entities 
returned from a query by applying the expression specified in this operator to 
the entity set identified by the last segment of the URI path.</SPAN></SPAN> 
</P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr" 
class=Normal-P><SPAN class=Normal-H><SPAN class="minorAnsiTheme Normal-H">For 
example:</SPAN></SPAN> </P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 473.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">/*</SPAN><SPAN 
      class="minorAnsiTheme code0-H"> all customers in London</SPAN><SPAN 
      class="minorAnsiTheme code0-H"> */</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">$customers = 
      $proxy-&gt;ExecuteQuery(“</SPAN><SPAN 
      class="minorAnsiTheme code0-H">Customers?$filter=City eq 
      ‘London’</SPAN><SPAN class="minorAnsiTheme code0-H">");</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN class="minorAnsiTheme code0-H">/* 
      </SPAN><SPAN class="minorAnsiTheme code0-H">Match all Customers with the 
      value of the property ‘fullname’ equal to ‘Wayne, John’</SPAN><SPAN 
      class="minorAnsiTheme code0-H">*/</SPAN><SPAN 
      class="minorAnsiTheme code0-H"> </SPAN><SPAN 
      class="minorAnsiTheme code0-H">$customers = 
      $proxy-&gt;ExecuteQuery(“</SPAN><SPAN 
      class="minorAnsiTheme code0-H">Customers?</SPAN><SPAN 
      class="minorAnsiTheme code0-H">\</SPAN><SPAN 
      class="minorAnsiTheme code0-H">$filter='Wayne, John' eq 
      insert(ContactName, length(lastname), ',')</SPAN><SPAN 
      class="minorAnsiTheme code0-H">");</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 473.4pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Normal-P><SPAN class=Normal-H></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Normal-P><SPAN class=Normal-H></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Normal-P><SPAN class=Normal-H><SPAN 
class="minorAnsiTheme Normal-H">C</SPAN><SPAN 
class="minorAnsiTheme Normal-H">onditions that can be used in </SPAN><SPAN 
class="minorAnsiTheme Normal-H">the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">filter condition are:</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Normal-P><SPAN class=Normal-H></SPAN> </P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 94.05pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Normal-P><SPAN class=Normal-H><SPAN style="FONT-WEIGHT: bold" 
      class=-H></SPAN><SPAN style="FONT-WEIGHT: bold" 
      class="minorAnsiTheme -H">Condition</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 148.5pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Normal-P><SPAN class=Normal-H><SPAN style="FONT-WEIGHT: bold" 
      class=-H></SPAN><SPAN style="FONT-WEIGHT: bold" 
      class="minorAnsiTheme -H">Description</SPAN></SPAN> </P></TD></TR>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 94.05pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Normal-P><SPAN class=Normal-H><SPAN 
      class="minorAnsiTheme Normal-H">E</SPAN><SPAN 
      class="minorAnsiTheme Normal-H">q</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 148.5pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Normal-P><SPAN class=Normal-H><SPAN 
      class="minorAnsiTheme Normal-H">Equals</SPAN></SPAN> </P></TD></TR>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 94.05pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Normal-P><SPAN class=Normal-H><SPAN 
      class="minorAnsiTheme Normal-H">N</SPAN><SPAN 
      class="minorAnsiTheme Normal-H">e</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 148.5pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Normal-P><SPAN class=Normal-H><SPAN 
      class="minorAnsiTheme Normal-H">Not equals</SPAN></SPAN> </P></TD></TR>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 94.05pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Normal-P><SPAN class=Normal-H><SPAN 
      class="minorAnsiTheme Normal-H">L</SPAN><SPAN 
      class="minorAnsiTheme Normal-H">t</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 148.5pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Normal-P><SPAN class=Normal-H><SPAN 
      class="minorAnsiTheme Normal-H">Less than</SPAN></SPAN> </P></TD></TR>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 94.05pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Normal-P><SPAN class=Normal-H><SPAN 
      class="minorAnsiTheme Normal-H">L</SPAN><SPAN 
      class="minorAnsiTheme Normal-H">e</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 148.5pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Normal-P><SPAN class=Normal-H><SPAN 
      class="minorAnsiTheme Normal-H">Less than or equal 
</SPAN></SPAN></P></TD></TR>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 94.05pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Normal-P><SPAN class=Normal-H><SPAN 
      class="minorAnsiTheme Normal-H">G</SPAN><SPAN 
      class="minorAnsiTheme Normal-H">t</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 148.5pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Normal-P><SPAN class=Normal-H><SPAN 
      class="minorAnsiTheme Normal-H">Greater than</SPAN></SPAN> </P></TD></TR>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 94.05pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Normal-P><SPAN class=Normal-H><SPAN 
      class="minorAnsiTheme Normal-H">G</SPAN><SPAN 
      class="minorAnsiTheme Normal-H">e</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 148.5pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Normal-P><SPAN class=Normal-H><SPAN 
      class="minorAnsiTheme Normal-H">Greater than or equal</SPAN></SPAN> 
  </P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 94.05pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 148.5pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Normal-P><SPAN class=Normal-H></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Normal-P><SPAN class=Normal-H></SPAN> </P>
<P 
style="PAGE-BREAK-AFTER: avoid; MARGIN-TOP: 10pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading2-P><SPAN class=Heading2-H><A name=_Toc220301517></A><SPAN 
class="majorAnsiTheme Heading2-H">Order </SPAN><SPAN 
class="majorAnsiTheme Heading2-H">by</SPAN><SPAN 
class="majorAnsiTheme Heading2-H"> Query</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">Sort the results by the 
criteria given in this value. Multiple properties can be indicated by separating 
them with a comma. The sort order can be controlled by using the “asc” (default) 
and “desc” modifiers.</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr" 
class=Normal-P><SPAN class=Normal-H></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr" 
class=Normal-P><SPAN class=Normal-H><SPAN class="minorAnsiTheme Normal-H">For 
example</SPAN><SPAN class="minorAnsiTheme Normal-H">:</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr" 
class=Normal-P><SPAN class=Normal-H></SPAN> </P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 473.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">$customers = 
      $proxy-&gt;ExecuteQuery(“</SPAN><SPAN 
      class="minorAnsiTheme code0-H">Customers?</SPAN><SPAN 
      class="minorAnsiTheme code0-H">\</SPAN><SPAN 
      class="minorAnsiTheme code0-H">$orderby=City</SPAN><SPAN 
      class="minorAnsiTheme code0-H">");</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">$customers = 
      $proxy-&gt;ExecuteQuery(“</SPAN><SPAN 
      class="minorAnsiTheme code0-H">Customers?</SPAN><SPAN 
      class="minorAnsiTheme code0-H">\</SPAN><SPAN 
      class="minorAnsiTheme code0-H">$orderby=City desc</SPAN><SPAN 
      class="minorAnsiTheme code0-H">");</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">$customers = 
      $proxy-&gt;ExecuteQuery(“</SPAN><SPAN 
      class="minorAnsiTheme code0-H">Customers?</SPAN><SPAN 
      class="minorAnsiTheme code0-H">\</SPAN><SPAN 
      class="minorAnsiTheme code0-H">$orderby=City desc,CompanyName 
      asc</SPAN><SPAN class="minorAnsiTheme code0-H">");</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 473.4pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H></SPAN> </P>
<P 
style="PAGE-BREAK-AFTER: avoid; MARGIN-TOP: 10pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading2-P><SPAN class=Heading2-H><A name=_Toc220301518></A><SPAN 
class="majorAnsiTheme Heading2-H">Skip Query</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">Skip the number of rows 
given in this parameter when returning results. This is useful in combination 
with “top” to implement paging (e.g. if using 10-entity pages, saying 
$skip=30&amp;top=$10 would return the fourth page). </SPAN></SPAN></P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">NOTE: Skip only makes sense 
on sorted sets; if an orderby option is included, ‘skip’ will skip entities in 
the order given by that option. If no orderby option is given, ‘skip’ will sort 
the entities by primary key and then perform the skip operation.</SPAN></SPAN> 
</P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr" 
class=Normal-P><SPAN class=Normal-H><SPAN 
class="minorAnsiTheme Normal-H">F</SPAN><SPAN class="minorAnsiTheme Normal-H">or 
example:</SPAN></SPAN> </P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 473.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN class="minorAnsiTheme code0-H">/* 
      </SPAN><SPAN class="minorAnsiTheme code0-H">return all customers except 
      the first 10 </SPAN><SPAN class="minorAnsiTheme code0-H">*/</SPAN></SPAN> 
      </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">$customers = 
      $proxy-&gt;ExecuteQuery(“</SPAN><SPAN 
      class="minorAnsiTheme code0-H">Customers?</SPAN><SPAN 
      class="minorAnsiTheme code0-H">\</SPAN><SPAN 
      class="minorAnsiTheme code0-H">$skip=10</SPAN><SPAN 
      class="minorAnsiTheme code0-H">");</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN class="minorAnsiTheme code0-H">/* 
      </SPAN><SPAN class="minorAnsiTheme code0-H">return the 4th page, in 10-row 
      pages</SPAN><SPAN class="minorAnsiTheme code0-H"> */</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">$customers = 
      $proxy-&gt;ExecuteQuery(“</SPAN><SPAN 
      class="minorAnsiTheme code0-H">Customers?</SPAN><SPAN 
      class="minorAnsiTheme code0-H">\</SPAN><SPAN 
      class="minorAnsiTheme code0-H">$skip=30&amp;</SPAN><SPAN 
      class="minorAnsiTheme code0-H">\</SPAN><SPAN 
      class="minorAnsiTheme code0-H">$top=10</SPAN><SPAN 
      class="minorAnsiTheme code0-H">");</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 473.4pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Normal-P><SPAN class=Normal-H></SPAN> </P>
<P 
style="PAGE-BREAK-AFTER: avoid; MARGIN-TOP: 10pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading2-P><SPAN class=Heading2-H><A name=_Toc220301519></A><SPAN 
class="majorAnsiTheme Heading2-H">Top Query</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">Restrict the maximum number 
of entities to be returned. This option is useful both by itself and in 
combination with skip, where it can be used to implement paging as discussed in 
the description of ‘skip’.</SPAN></SPAN> </P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 473.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN class="minorAnsiTheme code0-H">/* 
      </SPAN><SPAN class="minorAnsiTheme code0-H">top 5 sales orders</SPAN><SPAN 
      class="minorAnsiTheme code0-H"> */</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">$customers = 
      $proxy-&gt;ExecuteQuery(“</SPAN><SPAN 
      class="minorAnsiTheme code0-H">Customers?</SPAN><SPAN 
      class="minorAnsiTheme code0-H">\</SPAN><SPAN 
      class="minorAnsiTheme code0-H">$top=5</SPAN><SPAN 
      class="minorAnsiTheme code0-H">");</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN class="minorAnsiTheme code0-H">/* 
      </SPAN><SPAN class="minorAnsiTheme code0-H">top 5 sales orders with the 
      highest TotalDue</SPAN><SPAN class="minorAnsiTheme code0-H"> 
      */</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">$customers = 
      $proxy-&gt;ExecuteQuery(“</SPAN><SPAN 
      class="minorAnsiTheme code0-H">Orders?</SPAN><SPAN 
      class="minorAnsiTheme code0-H">\</SPAN><SPAN 
      class="minorAnsiTheme code0-H">$orderby=TotalDue&amp;</SPAN><SPAN 
      class="minorAnsiTheme code0-H">\</SPAN><SPAN 
      class="minorAnsiTheme code0-H">$top=5</SPAN><SPAN 
      class="minorAnsiTheme code0-H">");</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 473.4pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Normal-P><SPAN class=Normal-H></SPAN> </P>
<P 
style="PAGE-BREAK-AFTER: avoid; TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN-TOP: 24pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading1-P><SPAN class=Heading1-H><SPAN 
class="majorAnsiTheme Heading1-H">Creating new instance in data service 
</SPAN></SPAN></P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">In this scenario a new 
object is created on the client and then made persistent by saving it on the 
database exposed by the ADO.NET Data Service.</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">To create a new instance in 
the data service, </SPAN><SPAN class="minorAnsiTheme Normal-H">first a new php 
object needs to be created and the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">required properties</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> populated</SPAN><SPAN 
class="minorAnsiTheme Normal-H">, </SPAN><SPAN 
class="minorAnsiTheme Normal-H">then </SPAN><SPAN 
class="minorAnsiTheme Normal-H">by </SPAN><SPAN 
class="minorAnsiTheme Normal-H">call</SPAN><SPAN 
class="minorAnsiTheme Normal-H">ing</SPAN><SPAN class="minorAnsiTheme Normal-H"> 
AddObject </SPAN><SPAN class="minorAnsiTheme Normal-H">and </SPAN><SPAN 
class="minorAnsiTheme Normal-H">passing the object and the target 
entity-set</SPAN><SPAN class="minorAnsiTheme Normal-H">, the object is added to 
the collection of objects in the database</SPAN><SPAN 
class="minorAnsiTheme Normal-H">.</SPAN><SPAN class="minorAnsiTheme Normal-H"> A 
final call to the SaveChanges method makes the actual call that will save the 
new object in the database.</SPAN><SPAN class="minorAnsiTheme Normal-H"> The 
Following code snippet shows how to use this functionality.</SPAN></SPAN> </P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 473.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">require_once '</SPAN><SPAN 
      class="minorAnsiTheme code0-H">MyProxyClass.php';</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">$proxy 
      = new NorthwindEntities();</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">/* 
      Create a Customers php Object */</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">$customer = 
      Customers::CreateCustomers("CHAN9", "channel9"); </SPAN></SPAN></P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN class="minorAnsiTheme code0-H">/* 
      inserting Customers object </SPAN><SPAN 
      class="minorAnsiTheme code0-H">context tracking system </SPAN><SPAN 
      class="minorAnsiTheme code0-H">*/</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">$proxy-&gt;</SPAN><SPAN 
      class="minorAnsiTheme code0-H">AddObject</SPAN><SPAN 
      class="minorAnsiTheme code0-H">($customer</SPAN><SPAN 
      class="minorAnsiTheme code0-H">, ‘Customers’</SPAN><SPAN 
      class="minorAnsiTheme code0-H">)</SPAN><SPAN 
      class="minorAnsiTheme code0-H">;</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">/*SaveChange insert the object into data 
      service*/</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;SaveChanges();</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H></SPAN> </P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 473.4pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P 
style="PAGE-BREAK-AFTER: avoid; TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN-TOP: 24pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading1-P><SPAN class=Heading1-H><SPAN 
class="majorAnsiTheme Heading1-H">Updating an existing instance in data 
service</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">To update an existing 
instance in the data service, </SPAN><SPAN class="minorAnsiTheme Normal-H">first 
</SPAN><SPAN class="minorAnsiTheme Normal-H">an </SPAN><SPAN 
class="minorAnsiTheme Normal-H">instance from data service </SPAN><SPAN 
class="minorAnsiTheme Normal-H">needs to be retrieved </SPAN><SPAN 
class="minorAnsiTheme Normal-H">using </SPAN><SPAN 
class="minorAnsiTheme Normal-H">the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">ExecuteQuery or LoadProperty</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> </SPAN><SPAN 
class="minorAnsiTheme Normal-H">methods. After the object has been retrieved 
</SPAN><SPAN class="minorAnsiTheme Normal-H">and </SPAN><SPAN 
class="minorAnsiTheme Normal-H">the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">properties </SPAN><SPAN 
class="minorAnsiTheme Normal-H">set with the new values a </SPAN><SPAN 
class="minorAnsiTheme Normal-H">call </SPAN><SPAN 
class="minorAnsiTheme Normal-H">to the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">UpdateObject </SPAN><SPAN 
class="minorAnsiTheme Normal-H">applies the changes to the table(s) in the 
database</SPAN><SPAN class="minorAnsiTheme Normal-H">. The following code 
snippet shows how to use UpdateObject API.</SPAN></SPAN> </P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 473.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">require_once '</SPAN><SPAN 
      class="minorAnsiTheme code0-H">MyProxyClass.php';</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">$proxy 
      = new NorthwindEntities();</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$customers = 
      $proxy-&gt;ExecuteQuery(“</SPAN><SPAN 
      class="minorAnsiTheme Code-H">Customers(‘</SPAN><SPAN 
      class="minorAnsiTheme Code-H">CHAN9’));</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">/*</SPAN><SPAN 
      class="minorAnsiTheme Code-H">update the CompanyName property</SPAN><SPAN 
      class="minorAnsiTheme Code-H">*/</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$customer-&gt;CompanyName = 
      "Channel8";</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">/*</SPAN><SPAN 
      class="minorAnsiTheme Code-H">add the object to the list of objects that 
      needs to be updated in the database</SPAN><SPAN 
      class="minorAnsiTheme Code-H">*/</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;UpdateObject($customer)</SPAN><SPAN 
      class="minorAnsiTheme Code-H">;</SPAN><SPAN class="minorAnsiTheme Code-H"> 
      </SPAN></SPAN></P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">/*SaveChanges update</SPAN><SPAN 
      class="minorAnsiTheme Code-H">s</SPAN><SPAN class="minorAnsiTheme Code-H"> 
      the object in the data service*/</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;SaveChanges();</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 473.4pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H></SPAN> </P>
<P 
style="PAGE-BREAK-AFTER: avoid; TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN-TOP: 24pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading1-P><SPAN class=Heading1-H><SPAN 
class="majorAnsiTheme Heading1-H">Deleting an existing instance from data 
service</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">Similar to the Update 
scenario, </SPAN><SPAN class="minorAnsiTheme Normal-H">to</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> delete an existing instance in the data 
service, </SPAN><SPAN class="minorAnsiTheme Normal-H">first </SPAN><SPAN 
class="minorAnsiTheme Normal-H">an </SPAN><SPAN 
class="minorAnsiTheme Normal-H">instance </SPAN><SPAN 
class="minorAnsiTheme Normal-H">needs to be retrieved</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> using ExecuteQuery or LoadProperty</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> methods</SPAN><SPAN 
class="minorAnsiTheme Normal-H">,</SPAN><SPAN class="minorAnsiTheme Normal-H"> 
</SPAN><SPAN class="minorAnsiTheme Normal-H">then</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> </SPAN><SPAN class="minorAnsiTheme Normal-H">a 
</SPAN><SPAN class="minorAnsiTheme Normal-H">call </SPAN><SPAN 
class="minorAnsiTheme Normal-H">to the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">DeleteObject</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> methods adds the objects to the list of objects 
that needs to be deleted in the database. </SPAN><SPAN 
class="minorAnsiTheme Normal-H">. The following code snippet shows how to use 
DeleteObject API.</SPAN></SPAN> </P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 473.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">require_once '</SPAN><SPAN 
      class="minorAnsiTheme code0-H">MyProxyClass.php';</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">$proxy 
      = new NorthwindEntities();</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">/*</SPAN><SPAN 
      class="minorAnsiTheme Code-H"> Get the object by calling the ExecuteQuery 
      Method</SPAN><SPAN class="minorAnsiTheme Code-H">*/</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$customers = 
      $proxy-&gt;ExecuteQuery(“</SPAN><SPAN 
      class="minorAnsiTheme Code-H">Customers(‘</SPAN><SPAN 
      class="minorAnsiTheme Code-H">CHAN9));</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">/*</SPAN><SPAN 
      class="minorAnsiTheme Code-H">the object is added to the list of objects 
      to delete in the database</SPAN><SPAN 
      class="minorAnsiTheme Code-H">*/</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;DeleteObject($customer)</SPAN><SPAN 
      class="minorAnsiTheme Code-H">;</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">/* 
      SaveChanges makes the actual changes in the database */</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;SaveChanges();</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 473.4pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN 
style="FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold" 
class=-H></SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=NoSpacing-P><SPAN class=NoSpacing-H><SPAN 
style="FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold" 
class=-H></SPAN><SPAN 
style="FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold" 
class="majorAnsiTheme -H">Creating link between instances</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">If</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> you have a relationship between </SPAN><SPAN 
class="minorAnsiTheme Normal-H">two entities in the data service, then you can 
use AddLink to create relationship between the corresponding entity instances. 
The following code snippet shows how to create link between a Customers instance 
and Orders instances.</SPAN></SPAN> </P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 473.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">require_once '</SPAN><SPAN 
      class="minorAnsiTheme code0-H">MyProxyClass.php';</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">$proxy 
      = new NorthwindEntities();</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">/* 
      Create a Customers instance */</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$</SPAN><SPAN 
      class="minorAnsiTheme Code-H">customer </SPAN><SPAN 
      class="minorAnsiTheme Code-H">= new Customers();</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$</SPAN><SPAN 
      class="minorAnsiTheme Code-H">customer </SPAN><SPAN 
      class="minorAnsiTheme Code-H">-&gt;CustomerID = 'CHAN9';</SPAN></SPAN> 
</P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$</SPAN><SPAN 
      class="minorAnsiTheme Code-H">customer </SPAN><SPAN 
      class="minorAnsiTheme Code-H">-&gt;CompanyName = 'channel9';</SPAN></SPAN> 
      </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;AddToCustomers($</SPAN><SPAN 
      class="minorAnsiTheme Code-H">customer</SPAN><SPAN 
      class="minorAnsiTheme Code-H">)</SPAN><SPAN 
      class="minorAnsiTheme Code-H">;</SPAN><SPAN class="minorAnsiTheme Code-H"> 
      </SPAN></SPAN></P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">/*Create an Orders instance */</SPAN></SPAN> 
      </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$</SPAN><SPAN 
      class="minorAnsiTheme Code-H">Order</SPAN><SPAN 
      class="minorAnsiTheme Code-H"> = new Orders();</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">/* 
      Create </SPAN><SPAN class="minorAnsiTheme Code-H">link between Customer 
      and Order.</SPAN><SPAN class="minorAnsiTheme Code-H">*/</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;AddLink($cust, "Orders", 
      $</SPAN><SPAN class="minorAnsiTheme Code-H"> Order</SPAN><SPAN 
      class="minorAnsiTheme Code-H">)</SPAN><SPAN 
      class="minorAnsiTheme Code-H">;</SPAN><SPAN class="minorAnsiTheme Code-H"> 
      </SPAN></SPAN></P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;SaveChanges();</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H"></SPAN></SPAN></P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 473.4pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN 
style="FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold" 
class=-H></SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=NoSpacing-P><SPAN class=NoSpacing-H><SPAN 
style="FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold" 
class=-H></SPAN><SPAN 
style="FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold" 
class="majorAnsiTheme -H">Deleting link between instances</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">If you have two related 
entity instances in data service</SPAN><SPAN 
class="minorAnsiTheme Normal-H">,</SPAN><SPAN class="minorAnsiTheme Normal-H"> 
then you can use DeleteLink to remove the r</SPAN><SPAN 
class="minorAnsiTheme Normal-H">e</SPAN><SPAN 
class="minorAnsiTheme Normal-H">lationship between these two.</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> The following code snippet shows how to delete 
the link.</SPAN></SPAN> </P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 473.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">require_once '</SPAN><SPAN 
      class="minorAnsiTheme code0-H">MyProxyClass.php';</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">$proxy 
      = new NorthwindEntities();</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">/* 
      Retrive the Customers entity with key ‘CHAN9’ */</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">$query 
      = $proxy-&gt;ExecuteQuery("Customers(CustomerID='CHAN9')")</SPAN></SPAN> 
      </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">foreach($query as $customer) 
      </SPAN></SPAN></P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">{</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">/* 
      Load the Orders property */</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;LoadProperty($customer, "Orders") 
      ;</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">foreach($customer-&gt;Orders as $o) 
      </SPAN></SPAN></P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">{</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H"></SPAN><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;DeleteLink($customer, "Orders", 
      $o)</SPAN><SPAN class="minorAnsiTheme Code-H">;</SPAN><SPAN 
      class="minorAnsiTheme Code-H"> </SPAN><SPAN 
      class="minorAnsiTheme Code-H"></SPAN></SPAN></P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">}</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">}</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;SaveChanges();</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H"></SPAN></SPAN></P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 473.4pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=NoSpacing-P><SPAN class=NoSpacing-H><SPAN 
style="FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold" 
class=-H></SPAN><SPAN 
style="FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold" 
class="majorAnsiTheme -H">Using SaveChanges</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">The O</SPAN><SPAN 
class="minorAnsiTheme Normal-H">bject service will track the changes made to the 
entity instances in the current context</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> making possible to batch multiple request in 
one single call to the ADO.NET Data Service. This can reduce the response time 
cause by network latency</SPAN><SPAN class="minorAnsiTheme Normal-H">. When user 
calls SaveChanges</SPAN><SPAN class="minorAnsiTheme Normal-H"> all changes made 
since the last call to the SaveChanges methods are executed</SPAN><SPAN 
class="minorAnsiTheme Normal-H">.</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">The following code sample 
shows the scenario where new customer is created, then a new order and finally a 
link between the </SPAN><SPAN 
class="minorAnsiTheme Normal-H">customer</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> and order is establish before all changes are 
made permanent on the Database by calling the SaveChanges method.</SPAN></SPAN> 
</P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 473.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=code0-P><SPAN class=code0-H><SPAN 
      class="minorAnsiTheme code0-H">require_once '</SPAN><SPAN 
      class="minorAnsiTheme code0-H">MyProxyClass.php';</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">$proxy 
      = new NorthwindEntities();</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">/* 
      Enable tracking */</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$customer = 
      Customers::CreateCustomers(“CHAN9”, “channel9”);</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;AddToCustomers($customer);</SPAN></SPAN> 
      </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$customer-&gt;CompanyName = 
      “channel8”;</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;UpdateObject($customer);</SPAN></SPAN> 
      </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">$order 
      = new Orders();</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;AddToOrders($order);</SPAN></SPAN> 
      </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;AddLink($customer, ‘Orders’, 
      $order);</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">/* 
      SaveChanges will executes </SPAN><SPAN class="minorAnsiTheme Code-H">all 
      </SPAN><SPAN class="minorAnsiTheme Code-H">commands required for add 
      customer</SPAN><SPAN class="minorAnsiTheme Code-H"> and order instances 
      and </SPAN><SPAN class="minorAnsiTheme Code-H">create a link between these 
      two</SPAN><SPAN class="minorAnsiTheme Code-H">*/</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;SaveChanges();</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 473.4pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=NoSpacing-P><SPAN class=NoSpacing-H><SPAN 
style="FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold" 
class=-H></SPAN><SPAN 
style="FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold" 
class="majorAnsiTheme -H">Authentication in the Client Library</SPAN></SPAN> 
</P>
<P 
style="LINE-HEIGHT: 33.6pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 7.5pt; VERTICAL-ALIGN: top" 
class=NormalWeb-P><SPAN class=NormalWeb-H><SPAN 
style="FONT-FAMILY: ; FONT-SIZE: 11pt" class=-H></SPAN><SPAN 
style="FONT-FAMILY: ; FONT-SIZE: 11pt" class="minorAnsiTheme -H">The PHP client 
library </SPAN><SPAN style="FONT-FAMILY: ; FONT-SIZE: 11pt" 
class="minorAnsiTheme -H">also </SPAN><SPAN 
style="FONT-FAMILY: ; FONT-SIZE: 11pt" class="minorAnsiTheme -H">handles 
authentication.</SPAN><SPAN style="FONT-FAMILY: ; FONT-SIZE: 11pt" 
class="minorAnsiTheme -H"> </SPAN><SPAN style="FONT-FAMILY: ; FONT-SIZE: 11pt" 
class="minorAnsiTheme -H">By default, the client </SPAN><SPAN 
style="FONT-FAMILY: ; FONT-SIZE: 11pt" class="minorAnsiTheme -H">library 
</SPAN><SPAN style="FONT-FAMILY: ; FONT-SIZE: 11pt" 
class="minorAnsiTheme -H">assumes</SPAN><SPAN 
style="FONT-FAMILY: ; FONT-SIZE: 11pt" class="minorAnsiTheme -H"> the ADO.NET 
Data Service uses an anonymous connection so user credentials don't need to be 
specified.</SPAN><SPAN style="FONT-FAMILY: ; FONT-SIZE: 11pt" 
class="minorAnsiTheme -H">. However, you can set the Credentials property in the 
proxy object to point to an object holding the credential 
information.</SPAN><SPAN style="FONT-FAMILY: ; FONT-SIZE: 11pt" 
class="minorAnsiTheme -H"> The Credential property will be used if the ADO.NET 
Data Service requires the user to be authenticated.</SPAN></SPAN> </P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 473.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;Credential = new 
      Credential(</SPAN><SPAN 
      class="minorAnsiTheme Code-H">user-name</SPAN><SPAN 
      class="minorAnsiTheme Code-H">, </SPAN><SPAN 
      class="minorAnsiTheme Code-H">password</SPAN><SPAN 
      class="minorAnsiTheme Code-H">);</SPAN><SPAN 
      class="minorAnsiTheme Code-H"> </SPAN></SPAN></P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 473.4pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=NoSpacing-P><SPAN class=NoSpacing-H><SPAN 
style="FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold" 
class=-H></SPAN><SPAN 
style="FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold" 
class="majorAnsiTheme -H">C</SPAN><SPAN 
style="FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold" 
class="majorAnsiTheme -H">ustom authentication Support</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=NoSpacing-P><SPAN class=NoSpacing-H><SPAN 
class="minorAnsiTheme NoSpacing-H">In more advanced scenario, </SPAN><SPAN 
class="minorAnsiTheme NoSpacing-H">the</SPAN><SPAN 
class="minorAnsiTheme NoSpacing-H"> client application </SPAN><SPAN 
class="minorAnsiTheme NoSpacing-H">might need to </SPAN><SPAN 
class="minorAnsiTheme NoSpacing-H">set custom </SPAN><SPAN 
class="minorAnsiTheme NoSpacing-H">headers;</SPAN><SPAN 
class="minorAnsiTheme NoSpacing-H"> the toolkit exposed the </SPAN><SPAN 
class="minorAnsiTheme NoSpacing-H">addHeader</SPAN><SPAN 
class="minorAnsiTheme NoSpacing-H"> </SPAN><SPAN 
class="minorAnsiTheme NoSpacing-H">method for that</SPAN><SPAN 
class="minorAnsiTheme NoSpacing-H">. </SPAN><SPAN 
class="minorAnsiTheme NoSpacing-H">To remove the custom headers which are added 
call RemoveHeaders. </SPAN><SPAN class="minorAnsiTheme NoSpacing-H">The 
following code snippet shows how to use this functionality.</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=NoSpacing-P><SPAN class=NoSpacing-H></SPAN> </P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 473.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;</SPAN><SPAN 
      class="minorAnsiTheme Code-H">A</SPAN><SPAN 
      class="minorAnsiTheme Code-H">ddHeader(custom-header-name, 
      custom-header-value);</SPAN><SPAN class="minorAnsiTheme Code-H"> 
      </SPAN></SPAN></P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;</SPAN><SPAN 
      class="minorAnsiTheme Code-H">RemoveHeaders();</SPAN></SPAN> </P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 473.4pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Normal-P><SPAN class=Normal-H></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Normal-P><SPAN class=Normal-H><SPAN 
style="FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold" 
class=-H></SPAN><SPAN 
style="FONT-FAMILY: ; COLOR: #365f91; FONT-SIZE: 14pt; FONT-WEIGHT: bold" 
class="majorAnsiTheme -H">Connecting to Data Service through proxy 
server</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=NoSpacing-P><SPAN class=NoSpacing-H><SPAN 
class="minorAnsiTheme NoSpacing-H">IIf connecting to data service requires proxy 
    server, you can set the HttpProxy property in the proxy object to point to an 
    object holding the proxy server information.</SPAN></SPAN></P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 473.4pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">$proxy-&gt;Http</SPAN><SPAN 
      class="minorAnsiTheme Code-H">Proxy </SPAN><SPAN 
      class="minorAnsiTheme Code-H">= new </SPAN><SPAN 
      class="minorAnsiTheme Code-H">HttpProxy</SPAN><SPAN 
      class="minorAnsiTheme Code-H">(</SPAN><SPAN 
      class="minorAnsiTheme Code-H">proxy-server-name</SPAN><SPAN 
      class="minorAnsiTheme Code-H">, </SPAN><SPAN 
      class="minorAnsiTheme Code-H">proxy-server-port</SPAN><SPAN 
      class="minorAnsiTheme Code-H">);</SPAN><SPAN 
      class="minorAnsiTheme Code-H"> </SPAN></SPAN></P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 473.4pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P 
style="PAGE-BREAK-AFTER: avoid; TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN-TOP: 24pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading1-P><SPAN class=Heading1-H><SPAN 
class="majorAnsiTheme Heading1-H">Sample </SPAN><SPAN 
class="majorAnsiTheme Heading1-H">Applications</SPAN></SPAN> </P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">Sample Application included 
in the toolkit can be found under the Samples\PHPApplications.</SPAN></SPAN> 
</P>
<P 
style="PAGE-BREAK-AFTER: avoid; MARGIN-TOP: 10pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading2-P><SPAN class=Heading2-H><A name=_Toc220301523></A><SPAN 
class="majorAnsiTheme Heading2-H">Simple Demo and ADO .NET Data Services Editor 
Applications</SPAN><SPAN class="majorAnsiTheme Heading2-H"> </SPAN></SPAN></P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr" 
class=Normal-P><SPAN class=Normal-H><SPAN class="minorAnsiTheme Normal-H">Simple 
Demo and ADO .NET Data Services Editor applications use</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> the NorthWindDataService service that can be 
built with the Visual Studio project under the \Samples\</SPAN><SPAN 
class="minorAnsiTheme Normal-H">ADODotNETDataServices</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> directory. If you changed any of the default 
settings in the Visual Studio project, you will have to regenerate the proxy 
class (NorthWindEntities.php) before you can run the sample application. 
</SPAN></SPAN></P>
<P 
style="PAGE-BREAK-AFTER: avoid; MARGIN-TOP: 10pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading2-P><SPAN class=Heading2-H><A name=_Toc220301522></A><SPAN 
class="majorAnsiTheme Heading2-H">Game Store Application</SPAN></SPAN> </P>
<P 
style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; unicode-bidi: normal; DIRECTION: ltr" 
class=Normal-P><SPAN class=Normal-H><SPAN class="minorAnsiTheme Normal-H">The 
Game Store sample application uses the GameStoreDataService that can be built 
using the Visual Studio project under the \Samples\</SPAN><SPAN 
class="minorAnsiTheme Normal-H">ADODotNETDataServices</SPAN><SPAN 
class="minorAnsiTheme Normal-H"> directory. If you changed any of the default 
settings in the Visual Studio project, you will have to regenerate the proxy 
class (VideoGameStoreEntities.php) before you can run the sample 
application.</SPAN></SPAN> </P>
<P 
style="PAGE-BREAK-AFTER: avoid; TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN-TOP: 24pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
class=Heading1-P><SPAN class=Heading1-H><SPAN 
class="majorAnsiTheme Heading1-H">Reference Section </SPAN></SPAN></P>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H><SPAN class="minorAnsiTheme Normal-H">List of APIs supported by 
PHP Client Library.</SPAN></SPAN> </P>
<TABLE style="BORDER-COLLAPSE: collapse; MARGIN-LEFT: 5.4pt" class=TableGrid-T 
cellSpacing=0>
  <TBODY>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 121.25pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P 
      style="PAGE-BREAK-AFTER: avoid; MARGIN-TOP: 10pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Heading2-P><SPAN class=Heading2-H><SPAN style="FONT-SIZE: 9pt" 
      class=-H></SPAN><SPAN style="FONT-SIZE: 9pt" class="majorAnsiTheme -H">API 
      Prototype</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 105.1pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P 
      style="PAGE-BREAK-AFTER: avoid; MARGIN-TOP: 10pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Heading2-P><SPAN class=Heading2-H><SPAN style="FONT-SIZE: 9pt" 
      class=-H></SPAN><SPAN style="FONT-SIZE: 9pt" 
      class="majorAnsiTheme -H">Parameters</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 154.85pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P 
      style="PAGE-BREAK-AFTER: avoid; MARGIN-TOP: 10pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Heading2-P><SPAN class=Heading2-H><SPAN style="FONT-SIZE: 9pt" 
      class=-H></SPAN><SPAN style="FONT-SIZE: 9pt" 
      class="majorAnsiTheme -H">Return Value</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 92.2pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P 
      style="PAGE-BREAK-AFTER: avoid; MARGIN-TOP: 10pt; unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Heading2-P><SPAN class=Heading2-H><SPAN style="FONT-SIZE: 9pt" 
      class=-H></SPAN><SPAN style="FONT-SIZE: 9pt" 
      class="majorAnsiTheme -H">Description</SPAN></SPAN> </P></TD></TR>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 121.25pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">ExecuteQuery(query-expression)</SPAN></SPAN> 
      </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 105.1pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">The 
      query to be executed against data service. Please refer ‘Data Service 
      Queries’ section for more details.</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 154.85pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">OnSuccess: Returns result of query as a 
      collection.</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">OnFailure: If any error occurs (ex: 
      malformed query), then client library will throw </SPAN><SPAN 
      class="minorAnsiTheme Code-H">ADODotNETDataServicesException</SPAN><SPAN 
      class="minorAnsiTheme Code-H"> exception with proper 
      message.</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 92.2pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">T</SPAN><SPAN 
      class="minorAnsiTheme Code-H">o execute queries against </SPAN><SPAN 
      class="minorAnsiTheme Code-H">the</SPAN><SPAN 
      class="minorAnsiTheme Code-H"> data service</SPAN></SPAN> </P></TD></TR>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 121.25pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">AddObject(Object, 
      Target_Entity_Set)</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 105.1pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">Object 
      : PHP Object represents the instance of a data service entity to be 
      inserted.</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">Target_Entity_Set : The name of entity set to 
      which Object belongs to.</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 154.85pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">OnSuccess: Returns 1</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">OnFailure: If any error occurs (ex: if 
      entity instance already exists), then client library will throw 
      </SPAN><SPAN 
      class="minorAnsiTheme Code-H">ADODotNETDataServicesException</SPAN><SPAN 
      class="minorAnsiTheme Code-H"> exception with proper 
      message.</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 92.2pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">To 
      create a new instance in the data service</SPAN><SPAN 
      class="minorAnsiTheme Code-H">.</SPAN></SPAN> </P></TD></TR>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 121.25pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">UpdateObject(Object)</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 105.1pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">Object 
      : PHP Object represents the existng instance of a data service entity, 
      which is to be updated.</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 154.85pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">OnSuccess : Returns 1</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">OnFailure: If any error occurs (ex: if 
      entity instance not exists), then client library will throw </SPAN><SPAN 
      class="minorAnsiTheme Code-H">ADODotNETDataServicesException</SPAN><SPAN 
      class="minorAnsiTheme Code-H"> exception with proper 
      message.</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 92.2pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">To 
      modify an existing entity instance</SPAN><SPAN 
      class="minorAnsiTheme Code-H">.</SPAN></SPAN> </P></TD></TR>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 121.25pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">DeleteObject(Object)</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 105.1pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">Object 
      : PHP Object represents the existing instance of a data service entity, 
      which is to be deleted.</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 154.85pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">OnSuccess: Returns 1</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">OnFaliure: If any error occurs (ex: if 
      entity instance not exists), then client library will throw </SPAN><SPAN 
      class="minorAnsiTheme Code-H">ADODotNETDataServicesException</SPAN><SPAN 
      class="minorAnsiTheme Code-H"> exception with proper 
      message.</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 92.2pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN style="COLOR: #000000" 
      class="minorAnsiTheme -H">To delete an entity instance.</SPAN></SPAN> 
    </P></TD></TR>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 121.25pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">AddLink(Source, </SPAN></SPAN></P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">SourceProperty, Target) 
</SPAN></SPAN></P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 105.1pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">Source: </SPAN><SPAN 
      class="minorAnsiTheme Code-H">The source object in the link</SPAN><SPAN 
      class="minorAnsiTheme Code-H">.</SPAN><SPAN class="minorAnsiTheme Code-H"> 
      </SPAN></SPAN></P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">SourceProperty: </SPAN><SPAN 
      class="minorAnsiTheme Code-H">The name of the property on the source 
      object that represents the source in the link between the source and the 
      target.</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">Target: </SPAN><SPAN 
      class="minorAnsiTheme Code-H">The target object involved in the link that 
      is bound to the source object</SPAN><SPAN 
      class="minorAnsiTheme Code-H">.</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 154.85pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">OnSuccess: Returns 1</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">OnFailure: If any error occurs, then client 
      library will throw </SPAN><SPAN 
      class="minorAnsiTheme Code-H">ADODotNETDataServicesException</SPAN><SPAN 
      class="minorAnsiTheme Code-H"> exception with proper 
      message.</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 92.2pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">To add 
      a link between two entity instances, assuming that there is a </SPAN><SPAN 
      class="minorAnsiTheme Code-H">relationship between </SPAN></SPAN></P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN style="COLOR: #000000" 
      class=-H></SPAN><SPAN class="minorAnsiTheme Code-H">Two entities. 
      </SPAN></SPAN></P></TD></TR>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 121.25pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">DeleteLink(Source, </SPAN></SPAN></P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">SourceProperty, Target) 
</SPAN></SPAN></P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 105.1pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">Source: </SPAN><SPAN 
      class="minorAnsiTheme Code-H">The source object in the link</SPAN><SPAN 
      class="minorAnsiTheme Code-H">.</SPAN><SPAN class="minorAnsiTheme Code-H"> 
      </SPAN></SPAN></P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">SourceProperty: </SPAN><SPAN 
      class="minorAnsiTheme Code-H">The name of the property on the source 
      object that represents the source in the link between the source and the 
      target.</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">Target: </SPAN><SPAN 
      class="minorAnsiTheme Code-H">The target object involved in the link that 
      is bound to the source object</SPAN><SPAN 
      class="minorAnsiTheme Code-H">.</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 154.85pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">OnSuccess: Returns 1</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">OnFailure: If any error occurs, then client 
      library will throw </SPAN><SPAN 
      class="minorAnsiTheme Code-H">ADODotNETDataServicesException</SPAN><SPAN 
      class="minorAnsiTheme Code-H"> exception with proper 
      message.</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 92.2pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">To 
      delete link between two entity instances.</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN style="COLOR: #000000" 
      class=-H></SPAN><SPAN class="minorAnsiTheme Code-H">.</SPAN></SPAN> 
  </P></TD></TR>
  <TR style="HEIGHT: 67.9pt" class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 121.25pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">AddHeader(Header-Name, 
      Header-Value)</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 105.1pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">Header-Name: The name of custom HTTP 
      header</SPAN></SPAN> </P>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">Header-Value: The vlaue of custom HTTP 
      header.</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 154.85pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">No 
      return value.</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 92.2pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN style="COLOR: #000000" 
      class=-H></SPAN><SPAN style="COLOR: #000000" class="minorAnsiTheme -H">To 
      add custom headers.</SPAN></SPAN> </P></TD></TR>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 121.25pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">RemoveHeaders()</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 105.1pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">No 
      argument</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 154.85pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">No 
      Return value</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 92.2pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN style="COLOR: #000000" 
      class=-H></SPAN><SPAN style="COLOR: #000000" class="minorAnsiTheme -H">To 
      Remove all custom headers aded by user</SPAN></SPAN> </P></TD></TR>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 121.25pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 105.1pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 154.85pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 92.2pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN style="COLOR: #000000" 
      class=-H></SPAN></SPAN> </P></TD></TR>
  <TR class=TableGrid-R>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 121.25pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN 
      class="minorAnsiTheme Code-H">SaveChanges()</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 105.1pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">No 
      arguments</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 154.85pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN class="minorAnsiTheme Code-H">Thows 
      </SPAN><SPAN 
      class="minorAnsiTheme Code-H">ADODotNETDataServicesException</SPAN><SPAN 
      class="minorAnsiTheme Code-H"> exception with proper message if any of the 
      command generated for changes fails.</SPAN></SPAN> </P></TD>
    <TD 
    style="BORDER-BOTTOM: #d9d9d9 0.5pt solid; BORDER-LEFT: #d9d9d9 0.5pt solid; PADDING-BOTTOM: 0pt; PADDING-LEFT: 5.4pt; WIDTH: 92.2pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #d9d9d9 0.5pt solid; BORDER-RIGHT: #d9d9d9 0.5pt solid; PADDING-TOP: 0pt" 
    class=TableGrid-C>
      <P style="unicode-bidi: normal; DIRECTION: ltr; MARGIN-BOTTOM: 0pt" 
      class=Code-P><SPAN class=Code-H><SPAN style="COLOR: #000000" 
      class=-H></SPAN><SPAN style="COLOR: #000000" class="minorAnsiTheme -H">To 
      save the changes made to the entities in the context to data 
      service.</SPAN></SPAN> </P></TD></TR>
  <TR height=0>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 121.25pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 105.1pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 154.85pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD>
    <TD 
    style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 92.2pt; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px"></TD></TR></TBODY></TABLE>
<P style="unicode-bidi: normal; DIRECTION: ltr" class=Normal-P><SPAN 
class=Normal-H></SPAN> </P></BODY></HTML>
